from flask import Blueprint, request, redirect, url_for
from common.libs.Helper import ops_renderJSON, iPagenation, ops_render
from common.models.evaluate import Evaluate

from common.models.pickclass import Pickclass
from application import db, app
from common.libs.DataHelper import getCurrentTime
import flask_excel as excel
from qiniu import Auth
from qiniu import put_data
from qiniu import BucketManager
import os
from sqlalchemy import and_, or_

evaluate_page = Blueprint("evaluate_page", __name__)




@evaluate_page.route('/evaluate', methods=['GET', 'POST'])
def evaluate():
    sap = request.args.get("sap")
    evaluateinfo = Evaluate.query.filter_by(sap=sap)

    title = "承建商入库审查前存档"
    return ops_render("/person/evaluate.html",
                      {"evaluateinfo": evaluateinfo, "title": title})